# $Id: PKGBUILD 78227 2012-10-17 10:25:55Z allan $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Douglas Soares de Andrade
# Contributor: Roberto Alsina <ralsina@kde.org>

pkgbase=python-mechanize
pkgname=python2-mechanize
pkgver=0.2.5
pkgrel=3
pkgdesc="Stateful programmatic web browsing in Python"
arch=('any')
url="http://wwwsearch.sourceforge.net/mechanize/"
license=('BSD' 'ZPL')
depends=('python2')
makedepends=('python2-distribute')
conflicts=('python-mechanize<=0.2.5-2')
replaces=('python-mechanize<=0.2.5-2')
source=(http://wwwsearch.sourceforge.net/mechanize/src/mechanize-$pkgver.tar.gz)
md5sums=('32657f139fc2fb75bcf193b63b8c60b2')

package_python2-mechanize() {
    cd "$srcdir/mechanize-$pkgver"
    python2 setup.py install --root="$pkgdir" --optimize=1
    install -D -m644 "$srcdir/mechanize-$pkgver/COPYING.txt" "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt"
}
